/*
 * 
 * Copyright (c) 2016 Yorma All Rights Reserved.
 */
package org.dydl.model.system;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * table:sys_rights
 * 
 * @author Hibernate Tools 3.5.0.Final
 * @version 1.0
 * @since 2016-9-7 11:06:57
 */
@Entity
@Table(name = "sys_rights")
public class SysRights implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2998540686456763823L;
	/**
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer id;

	private String menuId;

	private String homePage;

	/**
	 */
	private String name;
	/**
	 * 请求路径.
	 */
	private String url;

	private String level;

	/**
	 * 资源类型.
	 */
	private String resType;
	/**
	 * 验证方式.
	 */
	private Integer authType;
	/**
	 * 父ID.
	 */
	private Integer parentId;
	/**
	 * 继承树.
	 */
	private String parentIds;
	/**
	 * 是否启用.
	 */
	private Integer available;

	public SysRights() {
	}

	public SysRights(Integer id) {
		this.id = id;
	}

	public SysRights(Integer id, String name, String url, String resType, Integer authType, Integer parentId, String parentIds, Integer available) {
		this.id = id;
		this.name = name;
		this.url = url;
		this.resType = resType;
		this.authType = authType;
		this.parentId = parentId;
		this.parentIds = parentIds;
		this.available = available;
	}

	/**  
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**  
	 */
	public String getName() {
		return this.name;
	}

	/**
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * GET 请求路径.
	 * 
	 * @return 请求路径
	 */
	public String getUrl() {
		return this.url;
	}

	/**
	 * SET 请求路径.
	 * 
	 * @param url
	 *            请求路径
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * GET 资源类型.
	 * 
	 * @return 资源类型
	 */
	public String getResType() {
		return this.resType;
	}

	/**
	 * SET 资源类型.
	 * 
	 * @param resType
	 *            资源类型
	 */
	public void setResType(String resType) {
		this.resType = resType;
	}

	/**
	 * GET 验证方式.
	 * 
	 * @return 验证方式
	 */
	public Integer getAuthType() {
		return this.authType;
	}

	/**
	 * SET 验证方式.
	 * 
	 * @param authType
	 *            验证方式
	 */
	public void setAuthType(Integer authType) {
		this.authType = authType;
	}

	/**
	 * GET 父ID.
	 * 
	 * @return 父ID
	 */
	public Integer getParentId() {
		return this.parentId;
	}

	/**
	 * SET 父ID.
	 * 
	 * @param parentId
	 *            父ID
	 */
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	/**
	 * GET 继承树.
	 * 
	 * @return 继承树
	 */
	public String getParentIds() {
		return this.parentIds;
	}

	/**
	 * SET 继承树.
	 * 
	 * @param parentIds
	 *            继承树
	 */
	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}

	/**
	 * GET 是否启用.
	 * 
	 * @return 是否启用
	 */
	public Integer getAvailable() {
		return this.available;
	}

	/**
	 * SET 是否启用.
	 * 
	 * @param available
	 *            是否启用
	 */
	public void setAvailable(Integer available) {
		this.available = available;
	}

	public String getMenuId() {
		return menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getHomePage() {
		return homePage;
	}

	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

}
